/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.recycling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.medusa.gruul.common.core.util.ResultPageList;
import com.medusa.gruul.recycling.api.entity.RecyclingAssOrder;
import com.medusa.gruul.recycling.api.entity.RecyclingAssOrderAccount;
import com.medusa.gruul.recycling.model.vo.RecyclingAssOrderAccountStatisticalVo;
import com.medusa.gruul.recycling.model.vo.RecyclingAssOrderListVo;

import java.math.BigDecimal;

/**
 * <p>
 * 基金所得订单用户关联表 服务类
 * </p>
 *
 * @author whh
 * @since 2021-05-05
 */
public interface IRecyclingAssOrderAccountService extends IService<RecyclingAssOrderAccount> {


    /**
     * 获取店铺用户基金详情
     *
     * @param page     页数
     * @param size     条数
     * @param nickName 昵称
     * @param sortType 排序方式  1-基金值升序  2-基金值降序   3-按最近交易时间升序  4-按最近交易时间降序
     * @return com.medusa.gruul.recycling.model.vo.RecyclingOrderListVo
     */
    ResultPageList<RecyclingAssOrderListVo> recyclingAssOrderAccountList(Integer page, Integer size, String nickName, Integer sortType);

    /**
     * 用户数据新增
     *
     * @param recyclingAssOrder com.medusa.gruul.recycling.api.entity.RecyclingAssOrder
     */
    void addRecyclingAssOrder(RecyclingAssOrder recyclingAssOrder);

    /**
     * 基金详情统计
     *
     * @param s
     * @return com.medusa.gruul.recycling.model.vo.RecyclingAssOrderAccountStatisticalVo
     */
    RecyclingAssOrderAccountStatisticalVo recyclingAssOrderAccountStatistical(String s);


    /**
     * 数据回退
     *
     * @param recyclingAssOrder com.medusa.gruul.recycling.api.entity.RecyclingAssOrder
     */
    void removeRecyclingAssOrder(RecyclingAssOrder recyclingAssOrder,BigDecimal multiply,BigDecimal refundAmount);
}
